<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>比较两个数字的大小</title>
</head>
<body>
<script>
  var A = parseFloat(prompt('请输入数字A：'));
  var B = parseFloat(prompt('请输入数字B：'));
  if (A > B) {
    alert(A + " 大于 " + B);
  } else if (A < B) {
    alert(A + " 小于 " + B);
  } else {
    alert(A + " 等于 " + B);
  }
</script>
</body>
</html>
